package com.baiyang.app.ui.mine.readRecord;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.alibaba.fastjson.JSONObject;

public class RecordReadViewModel extends ViewModel {
    private MutableLiveData<JSONObject> readRecord;
    public RecordReadViewModel(){
        readRecord = new MutableLiveData<>();
    }
    public void setReadRecord(JSONObject result){
        this.readRecord.postValue(result);
    }

    public LiveData<JSONObject> getReadRecord(){
        return readRecord;
    }
}
